package com.ruoyi.tester.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 接口信息对象 tester_interface
 * 
 * @author SJ
 * @date 2022-04-22
 */
public class TesterInterface extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 接口id */
    private Long interfaceId;

    /** 接口描述 */
    @Excel(name = "接口描述")
    private String desc;

    /** 接口地址 */
    @Excel(name = "接口地址")
    private String mapping;

    /** http方式 */
    @Excel(name = "http方式")
    private String httpMethod;

    /** content_type */
    @Excel(name = "content_type")
    private String contentType;

    /** query参数 */
    @Excel(name = "query参数")
    private String queryParam;

    /** body参数 */
    @Excel(name = "body参数")
    private String bodyParam;

    /** path参数 */
    @Excel(name = "path参数")
    private String pathParam;

    /** 判定表达式 */
    @Excel(name = "判定表达式")
    private String judgeExpression;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public void setInterfaceId(Long interfaceId)
    {
        this.interfaceId = interfaceId;
    }

    public Long getInterfaceId()
    {
        return interfaceId;
    }
    public void setDesc(String desc)
    {
        this.desc = desc;
    }

    public String getDesc()
    {
        return desc;
    }
    public void setMapping(String mapping)
    {
        this.mapping = mapping;
    }

    public String getMapping()
    {
        return mapping;
    }
    public void setHttpMethod(String httpMethod)
    {
        this.httpMethod = httpMethod;
    }

    public String getHttpMethod()
    {
        return httpMethod;
    }
    public void setContentType(String contentType)
    {
        this.contentType = contentType;
    }

    public String getContentType()
    {
        return contentType;
    }
    public void setQueryParam(String queryParam)
    {
        this.queryParam = queryParam;
    }

    public String getQueryParam()
    {
        return queryParam;
    }
    public void setBodyParam(String bodyParam)
    {
        this.bodyParam = bodyParam;
    }

    public String getBodyParam()
    {
        return bodyParam;
    }
    public void setPathParam(String pathParam)
    {
        this.pathParam = pathParam;
    }

    public String getPathParam()
    {
        return pathParam;
    }
    public void setJudgeExpression(String judgeExpression)
    {
        this.judgeExpression = judgeExpression;
    }

    public String getJudgeExpression()
    {
        return judgeExpression;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("interfaceId", getInterfaceId())
                .append("desc", getDesc())
                .append("mapping", getMapping())
                .append("httpMethod", getHttpMethod())
                .append("contentType", getContentType())
                .append("queryParam", getQueryParam())
                .append("bodyParam", getBodyParam())
                .append("pathParam", getPathParam())
                .append("judgeExpression", getJudgeExpression())
                .append("status", getStatus())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
